
package ConversorMassa;


public class ConversorGrama {
    private double tonelada;
    private double quilograma;
    private double grama;
    private double miligrama;

    public ConversorGrama(){
        
    }
    
    public double converteTonelada(){
        grama = tonelada*1000000;
        return grama;
    }
    
    public double converteQuilograma(){
        grama = quilograma*1000;
        return grama;
    }
    
    public double converteMiligrama(){
        grama = miligrama/1000;
        return grama;
    }
    
    
    
    /**
     * @return the tonelada
     */
    public double getTonelada() {
        return tonelada;
    }

    /**
     * @param tonelada the tonelada to set
     */
    public void setTonelada(double tonelada) {
        this.tonelada = tonelada;
    }

    /**
     * @return the quilograma
     */
    public double getQuilograma() {
        return quilograma;
    }

    /**
     * @param quilograma the quilograma to set
     */
    public void setQuilograma(double quilograma) {
        this.quilograma = quilograma;
    }

    /**
     * @return the grama
     */
    public double getGrama() {
        return grama;
    }

    /**
     * @param grama the grama to set
     */
    public void setGrama(double grama) {
        this.grama = grama;
    }

    /**
     * @return the miligrama
     */
    public double getMiligrama() {
        return miligrama;
    }

    /**
     * @param miligrama the miligrama to set
     */
    public void setMiligrama(double miligrama) {
        this.miligrama = miligrama;
    }
}

